package java6703.lesson01;
//商品类

public class Product6703 {
    private String name;

    public Product6703(String name) {
        this.name = name;
    }

    public Product6703() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public boolean equals(Object o) {
        return getName().equals(o.toString());
    }

    @Override
    public String toString() {
        return getName();
    }
}
